<?php



if(isset($_COOKIE["userName"])) {
	echo "<div class='login'>Welcome, Yan Zhang  (<a href='login.php?func=logout'>logout</a>)</div>";
}
else 
	echo "<div class='login'>Welcome, Guest  (<a href='loginpage.php'>login</a>)</div>";


?>